<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>系统首页</title>
        <script src="/js/jquery.min.js"></script>
    </head>

    <body>
        <h1>Welcome to the system.</h1>

        <button type="button" id="delete">删除</button> | <button type="button" id="update">修改</button>

        <script>
            $(function () {
                $("#delete").click(function () {
                    $.post("/user/delete", function (resp) {
                        alert(resp.message);
                    });
                });

                $("#update").click(function () {
                    $.post("/user/update", function (resp) {
                        alert(resp.message);
                    });
                });

            });
        </script>
    </body>
</html>